import request from '@/utils/request'

export function getTeacherList(page,limit,eduTeacherQuery) {
  return request({
    url: `/eduservice/teacher/${page}/${limit}`,
    method: 'post',
    data:eduTeacherQuery
  })
}

export function getTeacherAllList() {
    return request({
      url: `/eduservice/teacher/list`,
      method: 'get'
    })
  }


export function addTeacher(teacher) {
  return request({
    url: `/eduservice/teacher/save`,
    method: 'post',
    data:teacher
  })
}

export function deleteById(id) {
  return request({
    url: `/eduservice/teacher/${id}`,
    method: 'delete'
  })
}

export function getById(id) {
  return request({
    url: `/eduservice/teacher/${id}`,
    method: 'get'
  })
}

export function updateById(teacher) {
  return request({
    url: `/eduservice/teacher/${teacher.id}`,
    method: 'put',
    data:teacher
  })
}